const http = require("http");


// http://www.itying.com/api/plist
function formatApi(api) {
  return "http://www.itying.com/"+api;
}

http.createServer(function (request, response) {
  response.writeHead(200, {"Content-Type": "text/html;charset='utf-8'"});
  response.write("<head><meta charset='utf-8' /></head>");
  const api = formatApi("api/plist");
  response.write(api)
  response.end();
}).listen(3000);

console.log("Server running at http://127.0.0.1:3000/");